package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_YSZB"
 *     
*/
public class XtglYszb implements Serializable {

    /** identifier field */
    private String yszbbm;

    /** persistent field */
    private String nd;

    /** persistent field */
    private String zclxDm;

    /** persistent field */
    private String yskmbh;

    /** nullable persistent field */
    private String sjyszbbm;

    /** nullable persistent field */
    private String ysxmbh;

    /** persistent field */
    private String zbztBz;

    /** nullable persistent field */
    private String yzjdBz;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public XtglYszb(String yszbbm, String nd, String zclxDm, String yskmbh, String sjyszbbm, String ysxmbh, String zbztBz, String yzjdBz, String zt1, String zt2) {
        this.yszbbm = yszbbm;
        this.nd = nd;
        this.zclxDm = zclxDm;
        this.yskmbh = yskmbh;
        this.sjyszbbm = sjyszbbm;
        this.ysxmbh = ysxmbh;
        this.zbztBz = zbztBz;
        this.yzjdBz = yzjdBz;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public XtglYszb() {
    }

    /** minimal constructor */
    public XtglYszb(String yszbbm, String nd, String zclxDm, String yskmbh, String zbztBz) {
        this.yszbbm = yszbbm;
        this.nd = nd;
        this.zclxDm = zclxDm;
        this.yskmbh = yskmbh;
        this.zbztBz = zbztBz;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="YSZBBM"
     *         
     */
    public String getYszbbm() {
        return this.yszbbm;
    }

    public void setYszbbm(String yszbbm) {
        this.yszbbm = yszbbm;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="ZCLX_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getZclxDm() {
        return this.zclxDm;
    }

    public void setZclxDm(String zclxDm) {
        this.zclxDm = zclxDm;
    }

    /** 
     *            @hibernate.property
     *             column="YSKMBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getYskmbh() {
        return this.yskmbh;
    }

    public void setYskmbh(String yskmbh) {
        this.yskmbh = yskmbh;
    }

    /** 
     *            @hibernate.property
     *             column="SJYSZBBM"
     *             length="50"
     *         
     */
    public String getSjyszbbm() {
        return this.sjyszbbm;
    }

    public void setSjyszbbm(String sjyszbbm) {
        this.sjyszbbm = sjyszbbm;
    }

    /** 
     *            @hibernate.property
     *             column="YSXMBH"
     *             length="50"
     *         
     */
    public String getYsxmbh() {
        return this.ysxmbh;
    }

    public void setYsxmbh(String ysxmbh) {
        this.ysxmbh = ysxmbh;
    }

    /** 
     *            @hibernate.property
     *             column="ZBZT_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getZbztBz() {
        return this.zbztBz;
    }

    public void setZbztBz(String zbztBz) {
        this.zbztBz = zbztBz;
    }

    /** 
     *            @hibernate.property
     *             column="YZJD_BZ"
     *             length="1"
     *         
     */
    public String getYzjdBz() {
        return this.yzjdBz;
    }

    public void setYzjdBz(String yzjdBz) {
        this.yzjdBz = yzjdBz;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("yszbbm", getYszbbm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglYszb) ) return false;
        XtglYszb castOther = (XtglYszb) other;
        return new EqualsBuilder()
            .append(this.getYszbbm(), castOther.getYszbbm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getYszbbm())
            .toHashCode();
    }

}
